package com.cloorc.example.cloud.service;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

/**
 * First implementation of ServiceApplication by z0228 on 6/30/17
 *
 * @author : z0228
 * @version : 1.0.0
 * @since : 1.8
 */
@SpringCloudApplication
@EnableEurekaClient
@EnableCircuitBreaker
public class ProviderApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(ProviderApplication.class).web(true).run(args);
    }

//    @Bean
//    public RequestMappingHandlerMapping requestMappingHandlerMappingProcessor() {
//        return new RequestMappingHandlerMappingExtended();
//    }

//    @Bean
//    @ConditionalOnMissingBean
//    public ProviderV1 providerV1() {
//        return new ProviderV1();
//    }
}
